<!-- SEPARATION DES ZONES D'EDITION => ZONE VIDEO-->
<DIV  align='center'>
  <DIV id='admin_top'>
  	<B><DIV id='titreZoneVideo'>Ajouter une vidéo</DIV></B>
  </DIV>
  <DIV id='admin_content_back'>
    <DIV id='admin_content'>
  		<FORM name="formu" method="POST" action="javascript:validVideo();">
  			<TABLE  WIDTH='100%'>
  			<TR ID="trTypeVideoVideo">
  				<TD WIDTH="200px" valign="top"><B>Catégories :</B></TD>
  				<TD><SELECT ID="idTypesVideo" NAME="type_video">
  				</SELECT></TD>
  			</TR>				
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Titre :</B></TD>
  				<TD><INPUT ID="idTitreVideo" TYPE="text" NAME="titre" SIZE="40"></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Description :</B></TD>
  				<TD><TEXTAREA ID="idTexteVideo" TYPE="text" NAME="desc" COLS="60"></TEXTAREA></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>URL vidéo : videos/</B></TD>
  				<TD><INPUT ID="idUrlVideo" TYPE="text" NAME="url_video" SIZE="40"></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Taille :</B></TD>
  				<TD><INPUT ID="idTailleVideo" TYPE="text" NAME="taille" SIZE="40"></TD>
  			</TR>
  			<TR>
  				<TD WIDTH="200px" valign="top"><B>Durée :</B></TD>
  				<TD><INPUT ID="idDureeVideo" TYPE="text" NAME="duree" SIZE="40"></TD>
  			</TR>				
  			<TR><TD colspan=2 align="center">
  			<BR><INPUT TYPE="Submit" Value="Valider"><BR><BR>
  			</TD></TR>
  			</TABLE>
  		</FORM>
      <DIV ID="zoneIllustration" algin='left'>
  		</DIV>
  	</DIV>
  </DIV>
  <DIV id='video_content_end'></DIV>
</DIV>


<!-- SEPARATION DES ZONES D'EDITION => ZONE ILLUSTATION-->
<BR />
<DIV ID="divIllustration" align='center'>
</DIV>

<!-- SEPARATION DES ZONES D'EDITION => ZONE SECTION-->

<BR />
<DIV ="divTypeVideo" align='center'>
  <DIV id='admin_top'>
		<B>Ajouter une catégorie de vidéos</B>
	</DIV>
	<DIV id='admin_content_back'>
	 <DIV id='admin_content'>
			<FORM method="POST" action="javascript:addTypeVideoToBase();">
				<TABLE  WIDTH='100%'>
				<TR>
					<TD WIDTH="200px" valign="top"><B>Catégorie de vidéo :</B></TD>
					<TD><INPUT ID="idNewTypeVideo" TYPE="text" NAME="type_video" SIZE="40"></TD>
				</TR>
				<TR><TD colspan=2 align="center">
				<BR><INPUT TYPE="Submit" Value="Ajouter"><BR><BR>
				</TD></TR>
				</TABLE>
			</FORM>
    </DIV>
  </DIV>
  <DIV id='admin_content_end'></DIV>
</DIV>

<!-- SEPARATION DES ZONES D'EDITION => ZONE DE RETOUR Ó la page principale-->

<TABLE WIDTH="100%">
	<TD align="center"><A HREF="index.php?page=videos" class='blanc'>Revenir à la liste des vidéos</A></TD>
</TABLE>

<script src='templates/js/update_illustration.js'></script>
<script src='include/frameworks/jquery.jcarousel.pack.js'></script>
<script src='include/frameworks/jquery.autocomplete.js'></script>
<style type="text/css" media="all">@import "css/jquery.jcarousel.css";</style>
<style type="text/css" media="all">@import "css/jquery.autocomplete.css";</style>
<style type="text/css" media="all">@import "css/skins_jcarousel/tango/skin.css";</style>
<?
  
	if(!session_is_registered('login')) {
		 echo "<p>Vous devez ?re enregistr?pour acc?er ?cette page !</P>";
	 } else {	 
		 
  	$id_video = -1;
  	if (isset($_GET['id_video'])){
  	   $id_video = $_GET['id_video'];
    }
    
    echo "\n<script language='Javascript'>\n";
    echo "manageLayout($id_video);\n";
    echo "getVideo($id_video);\n";
    if ($id_video == -1){
      echo "getTypesVideo();\n";
    }
    echo "</script>";
	
  }
?>
